siridb-server (2.0.53-1) unstable; urgency=medium
authorPaul Gevers <elbrus@debian.org>
Sat, 15 Nov 2025 07:44:39 +0000 (08:44 +0100)
committerPaul Gevers <elbrus@debian.org>
Sat, 15 Nov 2025 07:44:39 +0000 (08:44 +0100)
  * New upstream version 2.0.53
  * Build-Depends: add libcrypt-dev (Closes: #1107003)

[dgit import unpatched siridb-server 2.0.53-1]

12 files changed:
1  2 
debian/changelog
debian/control
debian/copyright
debian/links
debian/patches/0001-link-with-libatomic-for-test.patch
debian/patches/series
debian/rules
debian/siridb-server.lintian-overrides
debian/tests/control
debian/tests/http-api
debian/upstream/metadata
debian/watch

index 2c7fb5ed99b27e676c721531d87d88a799847fe1,0000000000000000000000000000000000000000..39f974553f6f3907bcb237cd218efb519ea4cd00
mode 100644,000000..100644
--- /dev/null
@@@ -1,245 -1,0 +1,204 @@@
- siridb-server (2.0.53-0~cb1) unstable; urgency=medium
++siridb-server (2.0.53-1) unstable; urgency=medium
 +
-   * New upstream release
-     - Fixed bug with rollback after failed HTTP request for a new database
-     - Use heap instead of stack for translating a forward query
-     - Fixed reaclloc with zero bug
-     - Update testing files
++  * New upstream version 2.0.53
++  * Build-Depends: add libcrypt-dev (Closes: #1107003)
 +
-  -- Jeroen van der Heijden <jeroen@cesbit.com>  Wed, 22 Oct 2025 10:04:00 +0200
++ -- Paul Gevers <elbrus@debian.org>  Sat, 15 Nov 2025 08:44:39 +0100
 +
- siridb-server (2.0.52-0~cb1) unstable; urgency=medium
++siridb-server (2.0.52-1) unstable; urgency=medium
 +
-   * New upstream release
-     - Fixed potential bug with empty log log lines in series.
++  * New upstream version 2.0.52
 +
-  -- Jeroen van der Heijden <jeroen@cesbit.com>  Mon, 23 Sep 2024 16:57:00 +0200
++ -- Paul Gevers <elbrus@debian.org>  Thu, 26 Sep 2024 18:59:22 +0200
 +
- siridb-server (2.0.50-0~cb1) unstable; urgency=medium
++siridb-server (2.0.51-4) unstable; urgency=medium
 +
-   * New upstream release
-     - Fixed potential bug while removing data
++  * Don't run valgrind tests on armhf until bug 1061496 is fixed
++  * tests: give server a bit time to start up (Closes: #1079984)
 +
-  -- Jeroen van der Heijden <jeroen@cesbit.com>  Tue, 21 Mar 2023 11:22:27 +0100
++ -- Paul Gevers <elbrus@debian.org>  Thu, 29 Aug 2024 16:54:49 +0200
 +
- siridb-server (2.0.49-0~cb1) unstable; urgency=medium
++siridb-server (2.0.51-3) unstable; urgency=medium
 +
-   * New upstream release
-     - Fixed HTTP requests with new libuv version (#183, Thanks to Nick Rosbrook)
++  * tests: add --retry to first curl to avoid failing if siridb-server
++    isn't ready yet (Closes: #1067705)
 +
-  -- Jeroen van der Heijden <jeroen@cesbit.com>  Mon, 19 Sep 2022 16:08:54 +0200
++ -- Paul Gevers <elbrus@debian.org>  Thu, 23 May 2024 22:34:09 +0200
 +
- siridb-server (2.0.48-0~cb1) unstable; urgency=medium
++siridb-server (2.0.51-2) unstable; urgency=medium
 +
-   * New upstream release
-     - Implement smaller indexes for old data
-     - Added `head` and `tail` syntax queries (#180)
++  [ Debian Janitor ]
++  * Update renamed lintian tag names in lintian overrides.
++  * Update standards version to 4.6.1, no changes needed.
 +
-  -- Jeroen van der Heijden <jeroen@cesbit.com>  Fri, 15 Jul 2022 07:55:12 +0200
++  [ Paul Gevers ]
++  * Add tzdata to Build-Depends (Closes: #1027381)
 +
- siridb-server (2.0.47-0~cb1) unstable; urgency=medium
++ -- Paul Gevers <elbrus@debian.org>  Mon, 30 Oct 2023 20:29:46 +0100
 +
-   * New upstream release
-     - Fixed initializing `random` (Thanks to Jayakrishna Menon)
-     - Changed Tee from Unix to TCP socket (#179)
-  -- Jeroen van der Heijden <jeroen@cesbit.com>  Fri, 29 Apr 2022 08:17:01 +0200
- siridb-server (2.0.46-0~tt1) unstable; urgency=medium
++siridb-server (2.0.51-1) unstable; urgency=medium
 +
 +  * New upstream release
-     - Switch to omap for storing promises (#175)
-     - Increased chunk size for numeric shards
++    - Drop libuv1 patch, solved differently upstream
++  * watch: update to use github API
 +
-  -- Jeroen van der Heijden <jeroen@cesbit.com>  Thu, 17 Feb 2022 14:21:58 +0100
++ -- Paul Gevers <elbrus@debian.org>  Sat, 28 Oct 2023 23:12:25 +0200
 +
- siridb-server (2.0.45-0~tt1) unstable; urgency=medium
++siridb-server (2.0.48-1) unstable; urgency=medium
 +
++  [ Paul Gevers ]
 +  * New upstream release
-     - Compatibility with libcleri v1.x
-     - Prioritize replication
-  -- Jeroen van der Heijden <jeroen@cesbit.com>  Thu, 13 Jan 2022 11:37:26 +0100
 +
- siridb-server (2.0.44-0~tt1) unstable; urgency=medium
-   * New upstream release
-     - Improve imap data structure (#168)
-     - Added ignore_broken_data option (@ubnt-michals, #172)
-     - Fixed siridb_time_now for arm32 builds (@srdgame, #169)
++  [ Nick Rosbrook ]
++  * Add patch to prevent segfault with libuv1 1.44.2 (Closes: #1017748)
 +
-  -- Jeroen van der Heijden <jeroen@cesbit.com>  Tue, 06 Apr 2021 11:39:12 +0200
++ -- Paul Gevers <elbrus@debian.org>  Thu, 25 Aug 2022 21:06:59 +0200
 +
- siridb-server (2.0.43-0~tt1.1) UNRELEASED; urgency=medium
-   * Non-maintainer upload.
-   * Improve cross building: (Closes: #-1)
-     + cross.patch: Make gcc substitutable.
-     + Let dh_auto_build pass cross tools to make.
-  -- Helmut Grohne <helmut@subdivi.de>  Tue, 09 Feb 2021 13:48:47 +0100
- siridb-server (2.0.43-0~tt1) unstable; urgency=medium
++siridb-server (2.0.45-1) unstable; urgency=medium
 +
++  [ Ileana Dumitrescu ]
++  * Non-maintainer upload
 +  * New upstream release
-     - Fixed HTTP pipeline issue (@srdgame, #161)
-     - Fixed possible memory corruption (@ubnt-michals, #158)
-     - Changed SIRIDB_DB_PATH configuration (#154)
-     - Fixed shard duration for ARM builds (@srdgame, #164)
-     - Use IPv4 for health and API when configured (@ubnt-michals, #155)
++  * Added latomic patch to port for riscv (Closes: #983768)
 +
-  -- Jeroen van der Heijden <jeroen@cesbit.com>  Thu, 04 Feb 2021 15:36:02 +0100
++ -- Ileana Dumitrescu <ileanadumi95@protonmail.com>  Mon, 07 Feb 2022 16:09:39 +0100
 +
- siridb-server (2.0.42-0~tt1) unstable; urgency=medium
++siridb-server (2.0.44-1) unstable; urgency=medium
 +
++  [ Paul Gevers ]
 +  * New upstream release
-     - Fixed handle ready status in Kubernetes statefulset (#153)
++  * Drop patch, applied upstream
 +
-  -- Jeroen van der Heijden <jeroen@cesbit.com>  Thu, 12 Nov 2020 09:39:13 +0100
++  [ Debian Janitor ]
++  * Update standards version to 4.5.1, no changes needed.
 +
- siridb-server (2.0.41-0~tt1) unstable; urgency=medium
-   * New upstream release
-     - Fixed bug in insert loop (#147)
-     - Fixed loading databases with duplicated series (#148)
-     - Allow server names without defining a port (#150)
++ -- Paul Gevers <elbrus@debian.org>  Sun, 02 Jan 2022 17:40:53 +0100
 +
-  -- Jeroen van der Heijden <jeroen@cesbit.com>  Wed, 04 Nov 2020 13:15:29 +0100
++siridb-server (2.0.43-1) unstable; urgency=medium
 +
- siridb-server (2.0.40-0~tt1) unstable; urgency=medium
++  [ Helmut Grohne ]
++  * Improve cross building: (Closes: #982363)
 +
++  [ Paul Gevers ]
 +  * New upstream release
-     - Added `alter tag` syntax (#144)
-     - Fixed list tags error when conditions are used (#145)
-     - Fixed division by zero bug (#146)
 +
-  -- Jeroen van der Heijden <jeroen@cesbit.com>  Fri, 25 Sep 2020 16:35:28 +0200
++ -- Paul Gevers <elbrus@debian.org>  Fri, 19 Feb 2021 20:37:54 +0100
 +
- siridb-server (2.0.39-0~tt1) unstable; urgency=medium
++siridb-server (2.0.42-1) unstable; urgency=medium
 +
-   * New upstream release
-     - Added auto shard duration option (#141)
-     - Added `shard_duration` property on list series (#140)
-     - Added `timeval()` and `interval()` functions (#138)
-     - Fixed build error on 32 bit systems (#135)
++  New upstream release
 +
-  -- Jeroen van der Heijden <jeroen@cesbit.com>  Fri, 18 Sep 2020 15:50:10 +0200
++ -- Paul Gevers <elbrus@debian.org>  Sun, 03 Jan 2021 21:54:23 +0100
 +
- siridb-server (2.0.38-0~tt1) unstable; urgency=medium
++siridb-server (2.0.40-1) unstable; urgency=medium
 +
 +  * New upstream release
-     - Added tag support (#74)
-     - Fixed cleanup duplicate package (#134)
++    - Drop patches (applied upstream)
 +
-  -- Jeroen van der Heijden <jeroen@cesbit.com>  Fri, 28 Aug 2020 11:12:24 +0200
++ -- Paul Gevers <elbrus@debian.org>  Sun, 18 Oct 2020 20:47:25 +0200
 +
- siridb-server (2.0.37-0~tt1) unstable; urgency=medium
++siridb-server (2.0.38-3) unstable; urgency=medium
 +
-   * New upstream release
-     - Fixed reading `series.dat` after unclean shutdown (#130)
-     - Fixed `gcc-10` compile errors (#132)
++  * Drop valgrind check on mips*el for now
 +
-  -- Jeroen van der Heijden <jeroen@cesbit.com>  Thu, 23 Jul 2020 14:38:50 +0200
++ -- Paul Gevers <elbrus@debian.org>  Sat, 12 Sep 2020 21:30:15 +0200
 +
- siridb-server (2.0.36-0~tt1) unstable; urgency=medium
++siridb-server (2.0.38-2) unstable; urgency=medium
 +
-   * New upstream release
-     - Fixed bug in max open files setting (#125)
-     - Accept Grafana compatible API requests (#129)
-     - Added support for configuration using environment variable (#128)
++  * Only add valgrind as Build-Depends where it exists
++  * Add patches to fix issues found by valgrind on mips*el
 +
-  -- Jeroen van der Heijden <jeroen@cesbit.com>  Wed, 22 Apr 2020 11:18:32 +0200
++ -- Paul Gevers <elbrus@debian.org>  Thu, 10 Sep 2020 21:24:55 +0200
 +
- siridb-server (2.0.35-0~tt1) unstable; urgency=medium
++siridb-server (2.0.38-1) unstable; urgency=medium
 +
++  [ Paul Gevers ]
 +  * New upstream release
-     - Added shard expiration (#123)
-     - Added HTTP API (#124)
++  * Add simple (but not superficial) autopkgtest
 +
-  -- Jeroen van der Heijden <jeroen@cesbit.com>  Mon, 24 Feb 2020 16:23:37 +0100
++  [ Debian Janitor ]
++  * Set upstream metadata fields: Bug-Database, Bug-Submit, Repository,
++    Repository-Browse.
 +
- siridb-server (2.0.34-0~tt1) unstable; urgency=medium
++ -- Paul Gevers <elbrus@debian.org>  Thu, 10 Sep 2020 09:55:01 +0200
++
++siridb-server (2.0.37-1) unstable; urgency=medium
 +
 +  * New upstream release
-     - Added readiness and liveness HTTP handler (#122)
-     - Fixed bug in sending packages to multiple SiriDB servers (#120)
++    - Fix FTBFS with GCC-10 (Closes: #957800)
 +
-  -- Jeroen van der Heijden <jeroen@cesbit.com>  Mon, 08 Jul 2019 14:18:56 +0200
++ -- Paul Gevers <elbrus@debian.org>  Mon, 27 Jul 2020 07:38:34 +0200
 +
- siridb-server (2.0.33-0~tt1) unstable; urgency=medium
++siridb-server (2.0.36-1) unstable; urgency=medium
 +
 +  * New upstream release
-     - Fixed deep recursion in series selection (#118)
-     - Fixed a few gcc version 8 warnings (#117)
-     - Increased package size limit and warning
-     - Added check for unexpected time-stamps in shards at startup
++    - Fixed headers (Closes: #933220)
++  * Add new B-D: libyajl-dev
 +
-  -- Jeroen van der Heijden <jeroen@cesbit.com>  Thu, 04 Apr 2019 14:19:22 +0200
++ -- Paul Gevers <elbrus@debian.org>  Sun, 17 May 2020 16:02:21 +0200
 +
- siridb-server (2.0.32-0~tt1) unstable; urgency=medium
++siridb-server (2.0.34-1) unstable; urgency=medium
 +
 +  * New upstream release
-     - Fixed drop database
++  * Update d/copyright
 +
-  -- Jeroen van der Heijden <jeroen@cesbit.com>  Fri, 11 Jan 2019 16:03:42 +0100
++ -- Paul Gevers <elbrus@debian.org>  Wed, 24 Jul 2019 14:58:21 +0200
 +
- siridb-server (2.0.31-0~tt1) unstable; urgency=medium
++siridb-server (2.0.32-1) unstable; urgency=medium
 +
 +  * New upstream release
-     - Added option for adding a data tee
-     - Added option to drop a database (#115)
-     - Remove limit of 4 database (#114)
-     - Do not return with an error if series do not exist (#112)
-     - Allow the use of parentheses in selecting series (#111)
-     - Fixed bug in merging series with high time precision (#108)
-     - Code forward compatible with upcoming cleri release
 +
-  -- Jeroen van der Heijden <jeroen@cesbit.com>  Thu, 10 Jan 2019 11:35:12 +0100
++ -- Paul Gevers <elbrus@debian.org>  Wed, 23 Jan 2019 20:06:04 +0100
 +
- siridb-server (2.0.30-0~tt1) unstable; urgency=medium
++siridb-server (2.0.30-1) unstable; urgency=medium
 +
++  [ Jeroen van der Heijden ]
 +  * New upstream release
 +    - SiriDB Server can now compile with gnu89/gnu90 (#101)
 +    - Removed deprecated info- and loaddb requests
 +    - Added named pipe support (#104, @pavelxdd)
 +    - Changed writing buffer length to reduce random io
 +    - Added option to fsync the buffer on a configurable interval
 +    - Use posix_fadvise() on the buffer file (@Svedrin)
 +    - The buffer size can now be adjusted by using the database.conf
 +      configuration file
 +    - Added conversion of invalid value types
++  * Lower log level of the service file
++
++  [ Paul Gevers ]
++  * Run testsuite during build
 +
-  -- Jeroen van der Heijden <jeroen@cesbit.com>  Fri, 12 Oct 2018 19:44:24 +0200
++ -- Paul Gevers <elbrus@debian.org>  Sun, 28 Oct 2018 18:43:45 +0100
 +
 +siridb-server (2.0.29-1) unstable; urgency=medium
 +
 +  * New upstream release
 +
 + -- Paul Gevers <elbrus@debian.org>  Wed, 25 Jul 2018 21:57:12 +0200
 +
 +siridb-server (2.0.28-1) unstable; urgency=medium
 +
 +  * New upstream release
 +
 + -- Paul Gevers <elbrus@debian.org>  Mon, 02 Jul 2018 14:00:34 +0200
 +
 +siridb-server (2.0.27-1) unstable; urgency=medium
 +
 +  * New upstream release
 +  * Update Maintainer and Vcs fields (Closes: #890700)
 +
 + -- Paul Gevers <elbrus@debian.org>  Mon, 28 May 2018 10:22:52 +0200
 +
 +siridb-server (2.0.26-1) unstable; urgency=medium
 +
 +  * New upstream release
 +  * Drop all patches
 +  * Add man page
 +
 + -- Paul Gevers <elbrus@debian.org>  Sat, 06 Jan 2018 07:54:21 +0100
 +
 +siridb-server (2.0.25-1) unstable; urgency=medium
 +
 +  * Initial release. (Closes: #882678)
 +
 + -- Paul Gevers <elbrus@debian.org>  Mon, 04 Dec 2017 21:40:02 +0100
diff --cc debian/control
index 4c4eeb40cfaa32d33deca9c965697f6552f349a2,0000000000000000000000000000000000000000..e0a348b2079c3e1a6c97c6ba05ccbe432fdbe22b
mode 100644,000000..100644
--- /dev/null
@@@ -1,34 -1,0 +1,36 @@@
-  debhelper (>= 11~),
 +Source: siridb-server
 +Section: database
 +Priority: optional
 +Maintainer: SiriDB Maintainers <team+debian-siridb-packaging-team@tracker.debian.org>
 +Uploaders:
 + Jeroen van der Heijden <jeroen@cesbit.com>,
 + Paul Gevers <elbrus@debian.org>,
 +Rules-Requires-Root: no
 +Build-Depends:
- Standards-Version: 4.1.3
++ debhelper-compat (= 13),
 + help2man,
 + libcleri-dev,
++ libcrypt-dev,
 + libpcre2-dev,
 + libuv1-dev,
++ libyajl-dev,
++ tzdata <!nocheck>,
 + uuid-dev,
++ valgrind-if-available <!nocheck>,
 +Homepage: https://siridb.net/
 +Vcs-Browser: https://salsa.debian.org/siridb-team/siridb-server
 +Vcs-Git: https://salsa.debian.org/siridb-team/siridb-server.git
-  libuv1 (>= 1.8.0),
-  libcleri0 (>= 0.9.3),
++Standards-Version: 4.6.1
 +
 +Package: siridb-server
 +Architecture: any
 +Depends:
 + ucf,
 + ${misc:Depends},
 + ${shlibs:Depends},
 +Description: SiriDB time series database server
 + SiriDB is a scalable, robust and fast time series database. Build from the
 + ground up SiriDB uses a mechanism to operate without a global index and allows
 + server resources to be added on the fly. SiriDB's query language includes
 + dynamic grouping of time series for easy analysis over large amounts of time
 + series.
index f645a16e0136d1b78eaf5195ce0971b330b55376,0000000000000000000000000000000000000000..154d236429f2b62d2d506537cd0ddf2e4330a79d
mode 100644,000000..100644
--- /dev/null
@@@ -1,37 -1,0 +1,42 @@@
- Copyright: 2017-2018 Paul Gevers <elbrus@debian.org>
 +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
 +
 +Files: *
 +Copyright: 2016-2022, Cesbit <jeroen@cesbit.com>
 +License: Expat
 +
 +Files: debian/*
++Copyright: 2017-2019 Paul Gevers <elbrus@debian.org>
++License: Expat
++
++Files: include/lib/http_parser.h
++ src/lib/http_parser.c
++Copyright: ?, Joyent, Inc. and other Node contributors
 +License: Expat
 +
 +License: Expat
 + The MIT License
 + .
 + Permission is hereby granted, free of charge, to any person
 + obtaining a copy of this software and associated
 + documentation files (the "Software"), to deal in the Software
 + without restriction, including without limitation the rights to
 + use, copy, modify, merge, publish, distribute, sublicense,
 + and/or sell copies of the Software, and to permit persons to
 + whom the Software is furnished to do so, subject to the
 + following conditions:
 + .
 + The above copyright notice and this permission notice shall
 + be included in all copies or substantial portions of the
 + Software.
 + .
 + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT
 + WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
 + INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 + MERCHANTABILITY, FITNESS FOR A PARTICULAR
 + PURPOSE AND NONINFRINGEMENT. IN NO EVENT
 + SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
 + LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 + LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 + TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 + CONNECTION WITH THE SOFTWARE OR THE USE OR
 + OTHER DEALINGS IN THE SOFTWARE.
diff --cc debian/links
index 0de57b2289d56924c9664298f18b6a493944511c,0000000000000000000000000000000000000000..c3314e06bb03d29fd0267680c64d4ec2969b59b3
mode 100644,000000..100644
--- /dev/null
@@@ -1,3 -1,0 +1,3 @@@
- usr/lib/siridb-server/siridb-server   usr/bin/siridb-server
++usr/lib/siridb-server/siridb-server usr/bin/siridb-server
 +usr/share/siridb-server/help          usr/lib/siridb-server/help
 +usr/share/siridb-server/help          usr/share/doc/siridb-server/help
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..affbab4763f366401f754f70ea8cb265650b87d6
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,32 @@@
++From 8e6e9a883121dc8077e2b29b51fe6f399c6d7141 Mon Sep 17 00:00:00 2001
++From: ildumi95 <ileanadumi95@protonmail.com>
++Date: Mon, 7 Feb 2022 15:47:57 +0100
++Subject: [PATCH] link with libatomic for test
++
++---
++ test/test.sh | 4 ++--
++ 1 file changed, 2 insertions(+), 2 deletions(-)
++
++diff --git a/test/test.sh b/test/test.sh
++index 2683a52c..de9bd235 100755
++--- a/test/test.sh
+++++ b/test/test.sh
++@@ -25,7 +25,7 @@ run () {
++     OUT=$1.out
++     rm "$OUT" 2> /dev/null
++ 
++-    gcc -I"../include" -O0 -g3 -Wall -Wextra -Winline -std=gnu99 $SOURCE $C_SRC -lm -lpcre2-8 -lcleri -luuid -luv -lyajl $LCRYPT -o "$OUT"
+++    gcc -I"../include" -O0 -g3 -Wall -Wextra -Winline -std=gnu99 $SOURCE $C_SRC -lm -latomic -lpcre2-8 -lcleri -luuid -luv -lyajl $LCRYPT -o "$OUT"
++     if [[ "$NOMEMTEST" -ne "1" ]]; then
++         valgrind --tool=memcheck --error-exitcode=1 --leak-check=full -q ./$OUT
++     else
++@@ -45,4 +45,4 @@ else
++     run "test_$name"
++ fi
++ 
++-exit $RET
++\ No newline at end of file
+++exit $RET
++-- 
++2.30.2
++
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..e05f2415f9550036548753da170da1931db6158b
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++0001-link-with-libatomic-for-test.patch
diff --cc debian/rules
index 875c4440590200553be2ff9c591383b420886bc2,0000000000000000000000000000000000000000..ad3e4854a0d141d9b4bd99b2b52a70dffdaf9a30
mode 100755,000000..100755
--- /dev/null
@@@ -1,14 -1,0 +1,21 @@@
 +#!/usr/bin/make -f
 +
 +export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 +
++LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) -latomic
++
 +%:
 +      dh $@
 +
 +override_dh_auto_build-arch:
 +      dh_auto_build --sourcedirectory=Release
 +      help2man -N -n"time series database server" Release/siridb-server > Release/siridb-server.1
 +
 +override_dh_auto_clean:
 +      $(MAKE) --directory=Release clean
 +      dh_auto_clean
++
++override_dh_auto_test:
++ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
++      $(MAKE) --directory=Release test
++endif
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..47c5055ea90e5622861f9b56c3624fe1798d991d
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,5 @@@
++# The help files are arch indep, so this is no issue
++siridb-server: ldconfig-escape usr/lib/siridb-server/help -> usr/share/siridb-server/help
++
++# The help files are needed by the program
++siridb-server: package-contains-documentation-outside-usr-share-doc
index 8ce3097d72c52b7f848219d228ffda530cf0697e,0000000000000000000000000000000000000000..3fa074bce30cc1e0e893599957f7e5cbc17457ac
mode 100644,000000..100644
--- /dev/null
@@@ -1,3 -1,0 +1,3 @@@
- Test-Command: NOMEMTEST=1 make --directory=Release test
- Features: test-name=siridb-unit-tests
- Depends: @, @builddeps@
++Tests: http-api
++Depends: @, curl
++Restrictions: needs-root, isolation-container
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..3e2cbed0aac4fd14314e9375889ecf7b0c23cab6
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,205 @@@
++#!/bin/sh
++set -e
++
++RES=0
++
++echo '* fixing /etc/siridb/siridb.conf'
++sed --in-place 's/http_api_port = 0/http_api_port = 9020/' /etc/siridb/siridb.conf
++
++echo '* restarting siridb-server'
++service siridb-server restart
++
++echo '* touch res.txt'
++touch res.txt
++
++echo '* sleep to let the server start up properly'
++sleep 5
++
++echo '* run queries'
++echo '  get-version'
++curl --silent --show-error --location --output res.txt \
++     --retry 10 \
++     --request GET 'http://localhost:9020/get-version' \
++     --header 'Content-Type: application/json' \
++     --header 'Authorization: Basic c2E6c2lyaQ==' || RES=1
++cat res.txt
++echo
++
++echo '  new-database'
++curl --silent --show-error --location --output res.txt \
++     --request POST 'http://localhost:9020/new-database' \
++     --header 'Content-Type: application/json' \
++     --header 'Authorization: Basic c2E6c2lyaQ==' \
++     --header 'Content-Type: text/plain' \
++     --data-raw '{
++      "dbname": "sampledb",
++      "time_precision": "s",
++      "buffer_size": 8192,
++      "duration_num": "1w",
++      "duration_log": "3d"
++}' || RES=1
++cat res.txt
++echo
++expect='"OK"'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo '  new-account'
++curl --silent --show-error --location --output res.txt \
++     --request POST 'http://localhost:9020/new-account' \
++     --header 'Content-Type: application/json' \
++     --header 'Authorization: Basic c2E6c2lyaQ==' \
++     --header 'Content-Type: text/plain' \
++     --data-raw '{
++        "account": "bob",
++      "password": "passwd4bob"
++}' || RES=1
++cat res.txt
++echo
++expect='"OK"'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo '  change-password'
++curl --silent --show-error --location --output res.txt \
++     --request POST 'http://localhost:9020/change-password' \
++     --header 'Content-Type: application/json' \
++     --header 'Authorization: Basic c2E6c2lyaQ==' \
++     --header 'Content-Type: text/plain' \
++     --data-raw '{
++        "account": "bob",
++      "password": "pass"
++}' || RES=1
++cat res.txt
++echo
++expect='"OK"'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo '  drop-account'
++curl --silent --show-error --location --output res.txt \
++     --request POST 'http://localhost:9020/drop-account' \
++     --header 'Content-Type: application/json' \
++     --header 'Authorization: Basic c2E6c2lyaQ==' \
++     --header 'Content-Type: text/plain' \
++     --data-raw '{
++       "account": "bob"
++}' || RES=1
++cat res.txt
++echo
++expect='"OK"'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo '  drop-database'
++curl --silent --show-error --location --output res.txt \
++     --request POST 'http://localhost:9020/drop-database' \
++     --header 'Content-Type: application/json' \
++     --header 'Authorization: Basic c2E6c2lyaQ==' \
++     --header 'Content-Type: text/plain' \
++     --data-raw '{
++      "database": "sampledb",
++      "ignore_offline": false
++}' || RES=1
++cat res.txt
++echo
++expect='"OK"'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo '  drop-database again'
++curl --silent --show-error --location --output res.txt \
++     --request POST 'http://localhost:9020/drop-database' \
++     --header 'Content-Type: application/json' \
++     --header 'Authorization: Basic c2E6c2lyaQ==' \
++     --header 'Content-Type: text/plain' \
++     --data-raw '{
++      "database": "sampledb",
++      "ignore_offline": false
++}' || RES=1
++cat res.txt
++echo
++expect='{"error_msg":"cannot find database '"'"'sampledb'"'"'"}'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo '  get-accounts'
++curl --silent --show-error --location --output res.txt \
++     --request GET 'http://localhost:9020/get-accounts' \
++     --header 'Content-Type: application/json' \
++     --header 'Authorization: Basic c2E6c2lyaQ=='
++cat res.txt
++echo
++expect='["sa"]'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo '  new-database for queries'
++curl --silent --show-error --location --output res.txt \
++     --request POST 'http://localhost:9020/new-database' \
++     --header 'Content-Type: application/json' \
++     --header 'Authorization: Basic c2E6c2lyaQ==' \
++     --header 'Content-Type: text/plain' \
++     --data-raw '{
++      "dbname": "sampledb",
++      "time_precision": "s",
++      "buffer_size": 8192,
++      "duration_num": "1w",
++      "duration_log": "3d"
++}' || RES=1
++cat res.txt
++echo
++expect='"OK"'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo '  get-databases'
++curl --silent --show-error --location --output res.txt \
++     --request GET 'http://localhost:9020/get-databases' \
++     --header 'Content-Type: application/json' \
++     --header 'Authorization: Basic c2E6c2lyaQ=='
++cat res.txt
++echo
++expect='["sampledb"]'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo '  query data (nothing there)'
++curl --silent --show-error --location --output res.txt \
++     --request POST 'http://localhost:9020/query/sampledb' \
++     --header 'Content-Type: application/json' \
++     --header 'Authorization: Basic aXJpczpzaXJp' \
++     --header 'Content-Type: text/plain' \
++     --data-raw '{
++      "q": "select count() from '\''aggr'\''",
++      "t": "ms"
++}' || RES=1
++cat res.txt
++echo
++expect='{}'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo '  insert data'
++curl --silent --show-error --location --output res.txt \
++     --request POST 'http://localhost:9020/insert/sampledb' \
++     --header 'Content-Type: application/json' \
++     --header 'Authorization: Basic aXJpczpzaXJp' \
++     --header 'Content-Type: text/plain' \
++     --data-raw '{
++    "aggr": [
++        [1578933215, 42],
++        [1578933223, 123]
++    ]
++}' || RES=1
++cat res.txt
++echo
++expect='{"success_msg":"Successfully inserted 2 point(s)."}'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo '  query data'
++curl --silent --show-error --location --output res.txt \
++     --request POST 'http://localhost:9020/query/sampledb' \
++     --header 'Content-Type: application/json' \
++     --header 'Authorization: Basic aXJpczpzaXJp' \
++     --header 'Content-Type: text/plain' \
++     --data-raw '{
++      "q": "select count() from '\''aggr'\''",
++      "t": "ms"
++}' || RES=1
++cat res.txt
++echo
++expect='{"aggr":[[1578933223000,2]]}'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++exit $RES
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..978b263b50b21993c63083a0b15da256d18a6877
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,5 @@@
++---
++Bug-Database: https://github.com/transceptor-technology/siridb-server/issues
++Bug-Submit: https://github.com/transceptor-technology/siridb-server/issues/new
++Repository: https://github.com/transceptor-technology/siridb-server.git
++Repository-Browse: https://github.com/transceptor-technology/siridb-server
diff --cc debian/watch
index bc17067b919d5b2070e4dc518eeea5c8904f7475,0000000000000000000000000000000000000000..a461d8c407b24f1594dba2eb79abe2124f885860
mode 100644,000000..100644
--- /dev/null
@@@ -1,4 -1,0 +1,5 @@@
- opts="filenamemangle=s%(?:.*?)?v?(\d[\d.]*)\.tar\.gz%siridb-server-$1.tar.gz%" \
-   https://github.com/cesbit/siridb-server/releases \
-  (?:.*?/)?v?(\d[\d.]*)\.tar\.gz
 +version=4
++ opts="searchmode=plain,\
++ filenamemangle=s%v?@ANY_VERSION@%@PACKAGE@-$1.tar.xz%" \
++ https://api.github.com/repos/SiriDB/siridb-server/releases?per_page=50 \
++ https://api.github.com/repos/[^/]+/[^/]+/tarball/v?@ANY_VERSION@